package model.AttentionHouse.service.Impl;



import model.AttentionHouse.entity.Attentionhouse;
import model.AttentionHouse.mapper.AttentionHouseMapper;
import model.AttentionHouse.service.IAttentionhouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Sunshine、宸 on 2019/6/24.
 */
@Transactional
@Service
public class AttentionHouseServiceImpl implements IAttentionhouseService {
    @Autowired
    private AttentionHouseMapper attentionHouseMapper;

    @Override
    public List<Attentionhouse> findAll() {
        List<Attentionhouse> attentionhouses=attentionHouseMapper.findAll();
        return attentionhouses;
    }

    @Override
    public void delById(Integer houseId) {
        attentionHouseMapper.delById(houseId);
    }

    @Override
    public Attentionhouse findById(Integer house_id) {
        return attentionHouseMapper.findById(house_id);
    }
}
